package obj.day2.Test;

/**
 * @author げっしょく
 * @date 2021/7/16
 */
public class Cat extends Amaill{

    @Override
    public void eat() {
        System.out.println("猫吃🐟和猫粮");
    }
    public void CatMouse(){
        System.out.println("猫抓老鼠");
    }
}


class Dog extends Amaill{

    @Override
    public void eat() {
        System.out.println("狗吃肉和骨头");
    }
    public void DogCu(){
        System.out.println("狗拿耗子，多管闲事");

    }
}

class Pig extends Amaill{
    @Override
    public void eat() {
        System.out.println("我只拱嫩白菜");
    }
    public void sleep(){
        System.out.println("能吃了就睡，经过瘟疫遗留下来的猪，价格能和牛肉相比较");
    }
}
